home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-1.iso / comm / bgfax155.zip / BGFAX.DOC < prev    next >
Text File  |  1996-01-08  |  56KB  |  1,123 lines

  1.  
  2.          DON'T FORGET TO LOOK AT THE "READ.ME" AND "WHATS.NEW" FILES!
  3.  
  4.     =======================================================================
  5.  
  6.               Voice               B.J. Guillot           Data/Fax
  7.          +1 713.893.9320      2611 Rushwood Circle   +1 713.893.9124
  8.                             Houston Texas 77067-1941
  9.  
  10.           Copyright (C) 1993-1996 B.J. Guillot.  All Rights Reserved.
  11.  
  12.     =======================================================================
  13.     BGFAX 1.55                                                MON  8 JAN 96
  14.     =======================================================================
  15.  
  16.                          Dedicated to Gene Roddenberry
  17.                                   1921-1991
  18.  
  19.       "It wasn't a miracle... We just decided to go."
  20.               -- Tom Hanks, playing Jim Lovell in APOLLO 13,
  21.                  referring to the Apollo 11 moon landing.
  22.  
  23.       "Let's make sure history never forgets the name, ENTERPRISE."
  24.               -- Captain Jean-Luc Picard.  Star Trek: The Next Generation.
  25.  
  26.       "...Humans and aliens wrapped in two million, five hundred
  27.       thousand tons of spinning metal, all alone in the night..."
  28.               -- Commander Sinclair.  BABYLON 5.
  29.  
  30.       "I am Pentium of Borg.  Division is futile.  You will be
  31.       approximated."
  32.               -- unknown, relating to the FPU bug in early Pentium 60's
  33.  
  34.          -------------------------------------------------------------
  35.          ABSTRACT/FEATURES
  36.          -------------------------------------------------------------
  37.  
  38.          * Allows sysops to receives faxes on their BBS telephone line
  39.            without needing any additional hardware!
  40.  
  41.          * Can send faxes via the command line and return status by
  42.            errorlevel; fully configurable top of page headers on outgoing
  43.            faxes so that user names and phone numbers can be added
  44.  
  45.          * Everything runs in the foreground, no TSR programs needed
  46.  
  47.          * If you are already running a Fido mailer, you can configure
  48.            your mailer to exit and run BGFAX when the line is hot, thus
  49.            BGFAX does not necessarily have to answer the phone itself
  50.  
  51.          * Comes with a small and quick fax viewing program that supports
  52.            CGA, EGA, VGA, and VESA SVGA display modes as well as options
  53.            for fax printing and FAX-to-PCX conversion; it even can use XMS!
  54.            [ See VIEW.DOC for more information ]
  55.  
  56.          * Works with modems that offer a feature known as adaptive
  57.            answering on Class 1, Class 2, Class 2.0 and ZyXEL fax modems
  58.  
  59.          * Multitasker aware; releases ticks to DesqView and OS/2
  60.  
  61.          -------------------------------------------------------------
  62.          INCLUDED FILES
  63.          -------------------------------------------------------------
  64.  
  65.          1. DOCS\BGFAX.DOC -- general documentation, looking at it now
  66.  
  67.          2.       READ.ME -- read this
  68.          3.     WHATS.NEW -- release notes
  69.  
  70.          4.     BGFAX.EXE -- the main DOS executable
  71.          5.    BGFAX2.EXE -- the main OS/2 executable
  72.  
  73.          6.      VIEW.EXE -- fax viewing, PCX and DCX conversion,
  74.                                and PRINTING functions
  75.          7.      VIEW.DOC -- documentation to the view.exe program!
  76.  
  77.          8.      NFAX.COM --\  optional TSR utility to notify the user
  78.          9.    FAXOFF.COM --/  if a fax has been received (DOS ONLY)
  79.  
  80.          10.  MAKEFAX.EXE -- converts PCX and ASCII files to ZFAX format
  81.          11. MAKEFAX2.EXE -- same thing, but for OS/2
  82.          12     BGFAX.FNT -- font file for MAKEFAX and MAKEFAX2
  83.          13.  FNTEDIT.EXE -- font editor to make customized fonts (DOS ONLY)
  84.  
  85.          14.    BGFAX.CNF -- configuration file for /SEND and /HOST
  86.          15.     FBBS.BAT -- example batch file for using /HOST mode
  87.  
  88.          16.      REGISTER.FRM -- registration form
  89.          17.      REGISTER.NL  -- dutch registration form for the netherlands
  90.          18.      REGISTER.AUS -- australian registration form
  91.          19. DOCS\WIREXFER.FRM -- bank info needed for wire transfers
  92.  
  93.          Several *.TXT files that describe setting up BGFAX step-by-step
  94.          for various BBS systems, mailers, etc.  See the DOCS\ directory.
  95.  
  96.          -------------------------------------------------------------
  97.          DISCLAIMER
  98.          -------------------------------------------------------------
  99.  
  100.          BGFAX and accompanying files are provided AS IS without any
  101.          warranty, expressed or implied.  This includes without limitation
  102.          the fitfulness for a particular purpose or application and any
  103.          warranties of merchantability.  [Did you really understand that?]
  104.  
  105.          While I tried to be as through as possible in preparing BGFAX,
  106.          B.J. Guillot shall not be liable for any damages, whether direct,
  107.          indirect, special, incidental or consequential arising from a
  108.          failure of this program or accompanying files to operate in a
  109.          manner desired by the user.  B.J. Guillot shall not be liable for
  110.          any damage to data or property which may by caused directly or
  111.          indirectly by use of this program.
  112.  
  113.          In no event will B.J. Guillot be liable to you for any damages,
  114.          including any lost profits, lost savings or other incidental or
  115.          consequential damages arising out of your use or inability to use
  116.          the program, or for any claim by any other party.  Individuals using
  117.          the software bear all risk as to its quality and performance.
  118.   
  119.          -------------------------------------------------------------
  120.          OBTAINING THE LATEST VERSION OF BGFAX:
  121.          -------------------------------------------------------------
  122.  
  123.           FidoNet:  1:106/400                     Voice: +1 713.893.9320
  124.          InterNet: bjg90783@jetson.uh.edu           BBS: +1 713.893.9124
  125.  
  126.          1. Calling my BBS in the United States, +1 713-893-9124
  127.  
  128.          2. Internet...            FTP: ftp://ftp.csn.net/Computech
  129.                         World Wide Web: http://www.blkbox.com/~bgfax
  130.  
  131.          3. FidoNet FREQ of the magic name "BGFAX" from 1:106/400
  132.             (Beta copies are available under magic name "BGBETA")
  133.  
  134.          4. FidoNet FREQ...  The Netherlands...  2:512/39
  135.             The Owl's Nest is the Dutch Supra distributor and they
  136.             have three nodes:
  137.               +31 0.2155.10921   +31 0.2155.12571   +31 0.2155.28096
  138.  
  139.          5. FidoNet FREQ...  Austraila...  3:632/552
  140.             Hamish Moffatt, Cloud Nine, +61 03.886.5195
  141.  
  142.          6. E-mail request for users that do not have FTP access...
  143.             Just send Internet e-mail to "bgfax-request@stat.com"
  144.             (Beta copes are available from bgfax-beta-request@stat.com)
  145.  
  146.          -------------------------------------------------------------
  147.          MISCELLANEOUS NOTES
  148.          -------------------------------------------------------------
  149.  
  150.          Modems that I have direct access to:
  151.            SupraFaxModem v.32bis (V1.80-02, Rockwell AC ROM)
  152.            SupraFaxModem 144 Express Plus
  153.            SupraFaxModem 288 V.FC (FLASH firmware, latest version)
  154.            SupraFaxModem 288 V.34 (FLASH firmware, latest version)
  155.            USR Courier V.Everything (FLASH firmware, latest version)
  156.            Hayes Optima 288 V.34 (V3.1 firmware)
  157.            SIERRA based 2400 data/9600 fax modem from Computer City
  158.  
  159.    *************************************************************************
  160.    *************************************************************************
  161.  
  162.          The *.TXT files provide step-by-step setup instructions for most
  163.          mailers and BBS software.  You probably will not have to read the
  164.          rest of this documentation.
  165.  
  166.    *************************************************************************
  167.    *************************************************************************
  168.  
  169.          -------------------------------------------------------------
  170.          /HOST MODE
  171.          -------------------------------------------------------------
  172.  
  173.          If you want BGFAX to answer the phone, BGFAX is started up using
  174.          the /HOST command line parameter.
  175.  
  176.          If you plan on using BGFAX in Frontend mode, you need to do a
  177.          couple of things first.
  178.  
  179.          1. Make sure your BGFAX environment variable is set to a valid
  180.             directory.  See the included FBBS.BAT file.  Example...
  181.  
  182.             SET BGFAX=C:\BGFAX
  183.  
  184.             This environment variable points to the location of your BGFAX
  185.             configuration file and the directory where faxes will be
  186.             received into.
  187.  
  188.          2. Make sure the BGFAX.CNF configuration file is in the directory
  189.             pointed to by the BGFAX environment variable and make any
  190.             changes you think necessary.  The included configuration file
  191.             is self explanatory.  I won't repeat the format here.
  192.  
  193.          3. BGFAX can exit with 7 possible internal errorlevels:
  194.  
  195.                6 - /HOST:nn mode has been idle for more than nn minutes
  196.                4 - fax was received
  197.                3 - local logon
  198.                2 - data call
  199.                1 - restart the FBBS.BAT batch file
  200.  
  201.             If no errorlevel is encountered, it means the sysop aborted
  202.             BGFAX by pressing the [Esc] key or a serious error occurred.
  203.  
  204.             Actually, BGFAX can exit with several errorlevels if you setup
  205.             events.  Events are specified in the BGFAX.CNF file (see the
  206.             example file included).  Example:
  207.  
  208.             ev=07:00,192
  209.             ev=19:00,193
  210.  
  211.             That would cause BGFAX to exit with errorlevel 192 at 7:00am
  212.             and errorlevel 193 at 7:00pm.  BGFAX's event handling is very
  213.             crude, and I very much need to change it.  The event handling
  214.             still has several bugs that need to be fixed.  It works best if
  215.             you use a total of two events.  One event doesn't work very
  216.             well, and if you use more (up to 20 are allowed), you can miss
  217.             an event or two if a caller to your BBS overstays their visit.
  218.             BGFAX will always execute the first event that is passed over,
  219.             but won't do any more.  And, if you only have one event setup,
  220.             it will not execute that one if it is missed.  But it will, if
  221.             you set up two events.  You can probably tell I hate events.
  222.             If anyone has some ideas on how to keep track of events and
  223.             execute the ones that are missed, etc., I'd appreciate it.
  224.  
  225.          4. When BGFAX is waiting for a call, pressing Ctrl-R will reset
  226.             the on screen counters.  Ctrl-A will force BGFAX to send the
  227.             answer string to the modem.
  228.  
  229.          6. When a data call comes in, BGFAX creates a DOBBS.BAT file that
  230.             looks like so...
  231.  
  232.             C:\BGFAX\EXEBBS.BAT 9600 1 528 /ARQ
  233.  
  234.             BGFAX/2 will create DOBBS.CMD instead of a BAT file ...
  235.               C:\BGFAX\EXEBBS.CMD 9600 5 528 /ARQ
  236.             
  237.             The first parameter is the DCE data speed, then the com port,
  238.             number of minutes until the next event, and then the error
  239.             correcting string, if any.  The EXEBBS.BAT file must be created
  240.             by you so that your bulletin board software is loaded up in
  241.             frontend mode (ie., the data connection is already hot.)
  242.  
  243.                  %1 -> the DCE speed, modem-to-modem real connect speed
  244.                  %2 -> the COM port (BGFAX/2 will put the OS/2 com handle)
  245.                  %3 -> number of minutes until the next event
  246.                  %4 -> error correction/reliable mode indicators
  247.  
  248.          DOBBS.BAT theory
  249.          ================
  250.  
  251.          If you have never used a frontend program uses DOBBS.BAT theory,
  252.          there are several things you need to know.  You have to be pretty
  253.          confident in DOS and batch files, or you will get lost very
  254.          easily.  First, you need a main batch file that runs BGFAX.  Let's
  255.          call this FBBS.BAT:
  256.  
  257.  
  258. @echo off
  259. rem ***** This is an example batch file for frontend mode operation
  260. set bgfax=c:\bgfax
  261. c:
  262. cd %bgfax%
  263. bgfax /host
  264. if errorlevel 120 maint1.bat
  265. if errorlevel 4 goto faxrcvd
  266. if errorlevel 3 goto datacall
  267. if errorlevel 2 goto datacall
  268. if errorlevel 1 fbbs.bat
  269. goto end
  270. :faxrcvd
  271.   rem ***** You can auto-print every fax, see docs for info on EXEPRINT.BAT
  272.   call %bgfax%\doprint.bat
  273.   del %bgfax%\doprint.bat
  274.   fbbs.bat
  275. :datacall
  276.   rem ***** Errorlevel 2 = Data Call,  Errorlevel 3 = Local Logon
  277.   rem ***** The following line executes the DOBBS.BAT file created by BGFAX
  278.   rem ***** which then runs EXEBBS.BAT which should load your BBS software.
  279.   %bgfax%\dobbs.bat
  280. :end
  281.  
  282.  
  283.  -->     Note that DOS requires all if-errorlevel statements to go in
  284.  -->     DESCENDING ORDER!  (255,254,253,...,4,3,2,1).  This is a fact that
  285.  -->     many people forget.
  286.  
  287.          This FBBS.BAT file will run BGFAX and when a data caller calls
  288.          your system, BGFAX will exit with an errorlevel of 3.  This will
  289.          cause the batch file to jump to the ":datacall" label.  Here, the
  290.          line "%bgfax%\dobbs.bat" is executed, causing DOS to shift control
  291.          of the computer to the DOBBS.BAT file.  Remember, this is a file
  292.          that BGFAX creates!  You do not need to make a DOBBS.BAT file.
  293.          The DOBBS.BAT then executes _another_ batch file called EXEBBS.BAT
  294.          which will look something like:
  295.  
  296.               EXEBBS.BAT
  297.               ==========
  298.               @echo off
  299.               bbsprog /f:%1:%2
  300.               fbbs
  301.  
  302.     !!!  THE EXEBBS.BAT FILE WILL LOOK DIFFERENT FOR EVERY DIFFERENT
  303.          TYPE OF BBS SOFTWARE  !!!
  304.  
  305.          You will have to look up the info for the EXEBBS.BAT file in
  306.          your BBS user's manual.  I can't help you with that.  Notice
  307.          that the last line "fbbs" restarts the original FBBS.BAT
  308.          file that runs BGFAX in /HOST mode.
  309.  
  310.          In review: (1) Modify FBBS.BAT to meet your needs, (2) BGFAX will
  311.          MAKE a DOBBS.BAT file by itself, (3) YOU will need to MAKE an
  312.          EXEBBS.BAT file, (4) the EXEBBS.BAT file must restart FBBS.BAT.
  313.  
  314.          Do not use the CALL statement anywhere unless you really know what
  315.          you are doing.  "FILE.BAT" and "CALL FILE.BAT" causes two
  316.          completely different things to happen.  Only experienced DOS/batch
  317.          file writers need to experiment with that.  Example:
  318.  
  319.                TEST.BAT
  320.                ========
  321.                echo **TEST**
  322.  
  323.                EXAMPLE1.BAT                Example1.BAT output:
  324.                ===========
  325.                echo Hello World!             Hello World!
  326.                call test.bat                 **TEST**
  327.                echo Bye World!               Bye World!
  328.                rem ***We RETURNED to the batch file after TEST.BAT
  329.  
  330.                EXAMPLE2.BAT                Example2.BAT output:
  331.                ============
  332.                echo Hello World!             Hello World!
  333.                test.bat                      **TEST**
  334.                echo Bye World!
  335.                rem ***We DID NOT RETURN to the batch file after TEST.BAT
  336.  
  337.  
  338.          -------------------------------------------------------------
  339.          REAR END MODE (FIDO MAILERS, ETC.)
  340.          -------------------------------------------------------------
  341.  
  342.          Rear end mode is useful for those of us who are FidoNet members
  343.          where a Fido mailer is required to be running 24 hours a day.  It
  344.          will be your job to figure out how to get your mailer to exit to
  345.          BGFAX when your modem informs the mailer a fax call is coming
  346.          through.  (See the *.TXT files for hints on specific mailers.)
  347.  
  348.          Note that in rear-end mode, the BGFAX.CNF file is NOT used.
  349.          The BGFAX environment variable is not required either, but if
  350.          it is present in rear-end mode, the BGFAX.LOG will be saved
  351.          into the path that is pointed to by the BGFAX environment
  352.          variable.  Otherwise, the BGFAX.LOG is saved into the path that
  353.          is pointed to as specified on the command line (see below).
  354.  
  355.          You will need to know the result code your modem sends when an
  356.          incoming fax call is detected.  Some modems send TWO fax connect
  357.          strings.  For example, the Supra will send "FAX" followed by an
  358.          "+FCON" response about 2 seconds later.  The ZyXEL will send
  359.          "CONNECT FAX" followed immediately by "ZyXEL".  Most fax modems
  360.          report only one string though.  Use this chart for reference:
  361.  
  362.          Result   Modems
  363.          ======   ====================================================
  364.          FAX      Supra, Zoom, Hayes, most Rockwell based chipsets
  365.          +FCON    PPI, Intel, GVC, some other Class 2 modems
  366.          +FCO     USR V.Everything and other Class 2.0 modems
  367.             ^
  368.          THAT IS NOT A ZERO!!  IT'S THE LETTER "OH"!
  369.  
  370.          You need to configure your mailer (or BBS software) to exit
  371.          IMMEDIATELY upon receipt of the proper fax result code.  You
  372.          need to call BGFAX in the following manner:
  373.  
  374.          BGFAX /how faxpath port faxtype
  375.  
  376.          FAXPATH will be the directory where incoming faxes are to be
  377.          placed.  PORT is a valid communications port from 1 to 4, or,
  378.          optionally, a hexidecial base address and IRQ formatted as
  379.          followed "3F8x5".  Also, optionally, if the port has a bang, !,
  380.          following it, it will force the port to stay locked at the current
  381.          speed rather than shifting to 19200 on fax connects.  FAXTYPE is a
  382.          single character 'Z' or 'Q'.
  383.  
  384.          'Z' for ZyXEL ZFAX format,
  385.          'Q' for Smith Micro Software's Quick Link II fax format,
  386.          'F' for TIFF Class F, specially, Faxworks for OS/2 format.
  387.  
  388.          The "/how" deal is the most critical switch.  There are many
  389.          possible settings.
  390.  
  391.               /FAX   ... Modem reports "FAX" or "CONNECT FAX".
  392.                          BGFAX will automatically detect whether it should
  393.                          use Class 2 (Supra, Zoom) or the ZyXEL fax mode
  394.                          based on the next message (ie, "+FCON" or "ZyXEL").
  395.  
  396.               /FAX:713_555_1212     If your modem in Class 1, try one of
  397.               /FHAY:713_555_1212    these two options.
  398.  
  399.               /FAST:nn .... Modem reports "+FCON" (PPI, other Class 2 modems)
  400.  
  401.               /FCO:nn ..... Modem reports "+FCO" (USR V.Everything)
  402.  
  403.               /FZYX ....... ZyXEL owners use this if /FAX doesn't work.
  404.  
  405.               THE "nn" WILL BE A NUMBER IN SECONDS!
  406.  
  407.          Here is a schematic of how each option behaves:
  408.  
  409. ***           /FAX [ Supra, ZyXEL, i.e. all modems that report "FAX" ]
  410. 1. keeps port at locked DTE    1. <same>                1. <same>
  411. 2. waits for "+FCON"     _or_  2. waits for "OK"  _or_  2. waits for "ZyXEL"
  412. 3. drops port to 19200         3. sends "AT+FDR"        3. waits for high CTS
  413. 4. waits for "OK"                                       4. sends <DC2>
  414. 5. sends "AT+FDR"
  415.  
  416.  
  417. ***           /FAX:713_893_9124 [ Supra LC modem, Class 1 modem ]
  418.                 1. keeps port at locked DTE
  419.                 2. waits for "CONNECT"
  420.                 3. begins sending Class 1 HDLC frames
  421.  
  422.  
  423. ***           /FHAY:713_893_9124 [ Hayes 288, other Class 1 modems ]
  424.                 1. keeps port at locked DTE
  425.                 2. blindly starts sending Class 1 HDLC frames
  426.  
  427.  
  428. ***           /FAST:nn [ all Class 2 modems where /FAX won't work ]
  429.                 Let's present we use /FAST:4 ...
  430.                 1. drops port to 19200
  431.                 2. waits for "OK" for nn seconds (FOUR seconds if /FAST:4)
  432.                 3. if "OK" occurs before nn seconds, sends AT+FDR
  433.                          _or_
  434.                 3. if "OK" is not received in nn seconds,
  435.                      blindly sends AT+FDR
  436.  
  437.  
  438. ***           /FCO:nn [ USR, i.e., all Class 2.0 modems that report "+FCO"]
  439.                 This switch is a hybrid of the /FCO and /FCOS switches.
  440.                 Let's pretend we use /FCO:4 ...
  441.                 1. keeps port at locked DTE
  442.                 2. waits for "OK" for nn seconds (FOUR seconds if /FCO:4)
  443.                 3. if "OK" occurs before nn seconds, sends "AT+FDR"
  444.                             _or_
  445.                 3. if "OK" is not received in nn seconds,
  446.                      blindly sends "AT+FDR"
  447.  
  448.  
  449. ***           /FZYX  [ ZyXEL, use this only if /FAX doesn't work ]
  450.                 1. waits for high CTS
  451.                 2. sends <DC2>
  452.  
  453.          NOTE:  /FCO:0 is equivilant to the old /FCOS switch
  454.                 /FAST:0 is equivilant to the old /FCON switch
  455.  
  456.          When a fax is inbound, here are some example BGFAX command
  457.          lines for rear-end mode operation on my Supra:
  458.  
  459.          a.   BGFAX /FAX C:\BGFAX 1 Z
  460.          b.   bgfax /fax c:\bgfax f3 z
  461.          c.   bgfax /fax c:\bgfax 3f8x7 z
  462.          d.   bgfax2 /fax c:\bgfax h%3 z
  463.  
  464.          Here is how the above four options differ:
  465.  
  466.          a. Uses COM1
  467.          b. Uses FOSSIL port COM3 (many FOSSILs refer to this as Port 2)
  468.          c. Uses non-standard port configuration at hex address 3f8 and
  469.             using hardware IRQ 7.
  470.          d. OS/2 version, using a com handle ("h") of whatever is passed
  471.             by the %3 variable.  The com handle cannot be translated into
  472.             a port number, so it must be passed by the OS/2 BBS or OS/2
  473.             Fido mailer software.
  474.  
  475.          Using my Hayes 288, example command line options might be:
  476.  
  477.               bgfax /fhay:713_555_1212 c:\bgfax 1 z
  478.  
  479.          ...note that the ID string MUST be presented on the command line
  480.          when you are receiving with a Class 1 modem in rear end mode.
  481.          In Class 1, the fax software is responsible for sending the ID
  482.          string to the remote machine.  (In contrast to Class 2/2.0 modems,
  483.          which automatically send the ID to the remote machine.)
  484.  
  485.          The /FAX means that I used the modem response "FAX" as a trigger
  486.          for FD (see FD212.TXT for more details), C:\BGFAX is the path
  487.          where I want all faxes to be stored, "1" is the communications
  488.          port, and the "Z" represents I want faxes saved in ZyXEL's ZFAX
  489.          image format.
  490.  
  491.          -------------------------------------------------------------
  492.          CLASS 1 RECEIVING AND THE /DIS:NNN SWITCH
  493.          -------------------------------------------------------------
  494.  
  495.          Telling Class 1 modems to receive at a maximum of 9600 bps  /DIS
  496.          ================================================================
  497.  
  498.          If your Class 1 modem can receive at a maximum of 9600, strange
  499.          things will happen if you forgot to tell BGFAX this, since it will
  500.          default to tell the other side you will be using 14400 bps for fax
  501.          operations.  To force BGFAX to receive at a maximum of 9600 bps
  502.          with Class 1 faxmodems, use the /DIS:79 parameter, i.e.:
  503.  
  504.               bgfax /fhay:713_893_9124 c:\bgfax 1 z /dis:79 /ns
  505.  
  506.          To compute your own /DIS value, first, pick a value from the
  507.          following table:
  508.  
  509.          2400  -> 3
  510.          4800  -> 11
  511.          9600  -> 15
  512.          14400 -> 47
  513.  
  514.          Next, you have two options.  If you want to allow high resolution
  515.          documents, add the value 64 to your choice.  If you want to allow
  516.          2D-MR documents, add the value 128 to your choice.  For example,
  517.          let's say you wanted a maximum speed of 9600 along with high
  518.          resolution documents: 15 + 64 = 79, so use /DIS:79.
  519.  
  520.          See the following chart for pre-computed examples:
  521.  
  522.          /DIS:nnn   Description (all of the following allow high res faxes)
  523.          --------   -------------------------------------------------------
  524.          75         Maximum speed of 4800 bps, 1D-MH faxes only
  525.          79         Maximum speed of 9600 bps, 1D-MH faxes only
  526.          207        Maximum speed of 9600 bps, 1D-MH & 2D-MR faxes
  527.          111        Maximum speed of 14400 bps, 1D-MH faxes only [DEFAULT]
  528.          239        Maximum speed of 14400 bps, 1D-MH & 2D-MR faxes
  529.  
  530.          -------------------------------------------------------------
  531.          TSR fax notification
  532.          -------------------------------------------------------------
  533.  
  534.          BGFAX comes with an optional TSR program (NFAX.COM) that will
  535.          place the word "FAX" on your screen whenever a successful incoming
  536.          fax occurs.  However, you must tell BGFAX that you wish to alert
  537.          NFAX.COM to display the message.  You can do this by using the /NF
  538.          switch.  Example:
  539.  
  540.               bgfax /fax c:\bgfax 2 q /nf
  541.  
  542.          This will activate the NFAX.COM interrupt and cause the message to
  543.          get displayed.  To turn the message off, you can run the FAXOFF.COM
  544.          program contained in the BGFAX archive.  Remember, NFAX.COM is a
  545.          TSR and must be loaded in your AUTOEXEC.BAT properly if you wish
  546.          to use it with BGFAX.  It is totally optional!  Also, note that if
  547.          your machine is rebooted, the fax message will not be on your
  548.          screen when your system powers back up.
  549.  
  550.          NFAX.COM/FAXOFF.COM technical information:
  551.          ===========================================
  552.  
  553.          Here is a snip of the Turbo Pascal source code that tells NFAX.COM
  554.          to put the fax indicator on the screen:
  555.  
  556.               var
  557.                 regs : registers;
  558.               begin
  559.                 writeln('Activating "NFAX" interrupt.');
  560.                 regs.ah := 30; { nfax-function }
  561.                 regs.al := 21; { nfax-sub function }
  562.                 regs.bl := 95; { nfax-"FAX" attribute, white on purple }
  563.                 intr($55, regs); { nfax-tsr }
  564.               end;
  565.  
  566.          When you want to turn off the "FAX" alert message, you need to
  567.          run the included "FAXOFF.COM" file.  It basically issues the
  568.          same code above except that "regs.al := 22" instead of 21.
  569.          (Go into DEBUG and do an unassemble on the .COM file to see
  570.          exactly how to turn it off.)
  571.  
  572.     ************************************************************************
  573.          AFTER YOU RECEIVE THE FAX
  574.     ************************************************************************
  575.  
  576.          NAMING CONVENTION
  577.          =================
  578.          The name of the fax file will be FAXnnnn.??? where "nnnn" is a
  579.          number that is padded with zeros and "???" is "FAX" or "QFX",
  580.          depending upon which fax format you save the file in.  If you ever
  581.          see a BGFAX.$$$ file in your directory, it should *NOT* be there,
  582.          as it should have been renamed in the FAXnnnn.??? format.  If it
  583.          is there, it means some kind of problem happened during the fax
  584.          reception.  Normally, problem faxes will be renamed to BADnnnn.???.
  585.  
  586.          Faxworks format files are named FXnnnnn.FAX.
  587.  
  588.          FAXIN.LOG
  589.          =========
  590.          BGFAX creates a BGFAX.LOG file that contains a bunch of
  591.          information that is mainly only for debug purposes.  A much
  592.          cleaner log file is called FAXIN.LOG and looks like this:
  593.  
  594. Date  Time  ET    Bytes   Rate  Filename     Remote Fax ID        Pgs  Notes
  595. -------------------------------------------------------------------------------
  596. 12-21 11:52 00:42   18183  9600*FAX0001.FAX  Unknown                2  Finished
  597. 12-21 18:04 00:38   18182  9600 FAX0002.FAX  Unknown                2  Not Done
  598. 12-22 21:30 00:29   17793 14400*FAX0003.FAX  7138939124             1  Finished
  599. 12-22 21:42 00:29   17541 14400#FAX0004.FAX  TRANQUILITY BASE       1  Finished
  600. 12-23 06:44 00:32   16941  9600%FAX0005.FAX  Null ID Received       1  Finished
  601. 12-25 17:21 01:22  107392 14400*FAX0006.FAX  7132424708             1  Finished
  602.  
  603.          Notice the special symbols between the Rate and Filename:
  604.  
  605.            -> (space) means low resolution, 1D-MR compression
  606.          * -> means high resolution, 1D-MH compression
  607.          % -> means low resoltion, 2D-MR compression
  608.          # -> means high resolution, 2D-MR compression
  609.  
  610.          "Not Done" under Notes means that BGFAX believed more pages were
  611.          to have followed, but were not actually received.  "ET" is
  612.          estimated time.  Everything else is self explanatory.
  613.  
  614.  
  615.          DOPRINT.BAT
  616.          ===========
  617.          After you successfully receive a fax, BGFAX will exit with an
  618.          errorlevel of 4 and append (or create) a DOPRINT.BAT file.
  619.  
  620.          CALL C:\BGFAX\EXEPRINT.BAT C:\BGFAX\FAX0085.FAX
  621.          CALL C:\BGFAX\EXEPRINT.BAT C:\BGFAX\FAX0086.FAX
  622.  
  623.          You do not have to do anything with this at all, but it is
  624.          provided for those of you who wish to print faxes as they are
  625.          received.  It will call the EXEPRINT.BAT file and pass it the
  626.          parameter with the path and name of the fax file that was just
  627.          received.
  628.  
  629.          @echo off
  630.          rem ... following line prints to a laser
  631.          view %1 /p40
  632.          rem ... following line prints to a 24-pin dot matrix
  633.          rem view %1 /p24
  634.  
  635.          Remember to delete the DOPRINT.BAT file after you process it.
  636.          (If you do not, every time BGFAX goes to print another fax,
  637.          it will print ALL faxes received since you first set it up.)
  638.  
  639.          -------------------------------------------------------------
  640.          SEND FAX MODE
  641.          -------------------------------------------------------------
  642.  
  643.          Currently, if you want to send a fax to another person, the fax
  644.          file must already be in either ZFAX or Quick Link II fax image
  645.          format.
  646.  
  647.               BGFAX /SEND FAX0001.FAX 893-9124
  648.  
  649.          See the BGFAX.CNF file for more info, such as maximum amount of
  650.          busy signals and failures before exit, etc.
  651.  
  652.          At this time, only previously converted fax files can be sent.
  653.          (i.e., ASCII files have to be translated to ZFAX .FAX format or
  654.          QLII .QFX format.)  You can use the included MAKEFAX.EXE program
  655.          to convert an ASCII file to .FAX format.  MAKEFAX.EXE will require
  656.          that the font file BGFAX.FNT exists in your BGFAX directory.
  657.          MAKEFAX allows a width of up to 100 characters per line.  (Use
  658.          the /SP command line parameter on MAKEFAX if you want it to use
  659.          short sized pages for pages in the fax that aren't fully used.)
  660.  
  661.          BGFAX can exit with three possible errorlevels when sending...
  662.  
  663.               errorlevel 5  -> fax sent successfully
  664.               errorlevel 1  -> fax send failure
  665.               no errorlevel -> file not found, keypress abort, etc.
  666.  
  667.          If the number is BUSY, BGFAX will try a few more times (the number
  668.          of times specified in the MB= entry in the BGFAX.CNF file) and
  669.          will pause for SW= number of seconds between dials.  If a failure
  670.          occurs during handshaking or during the actual sending of the fax,
  671.          BGFAX will terminate with an failure errorlevel.
  672.  
  673.          If you are a programmer, and need to use BGFAX to send faxes, but
  674.          need more information than success or failure, you need to use the
  675.          /ER switch on the BGFAX /SEND command line.  BGFAX will make only
  676.          ONE attempt to send the fax in /ER mode (regardless of BUSY, etc.)
  677.  
  678.               bgfax /send fax0001.fax 893-9124 /er
  679.  
  680.          The following "Extended Results" are available:
  681.  
  682.               errorlevel 19 -> too many retrains (a class 1 failure)
  683.               errorlevel 18 -> remote ID fails the /CI:xxx match
  684.               errorlevel 17 -> remote fax device does not support 2D-MR
  685.               errorlevel 16 -> remote fax does not support high resolution
  686.               errorlevel 15 -> failure after connect (HDLC frameout, etc.)
  687.                                (a class 1 failure)
  688.               errorlevel 14 -> a timeout occurred
  689.               errorlevel 13 -> no +FCON ever occurred (NO CARRIER, etc.)
  690.                                (a class 2 or 2.0 failure)
  691.               errorlevel 12 -> failure after connect (+FHNG, no XON, etc.)
  692.                                (a class 2 or 2.0 failure)
  693.               errorlevel 11 -> "NO DIALTONE"
  694.               errorlevel 10 -> "BUSY"
  695.               errorlevel 7  -> the number is BLACKLISTED by the modem
  696.               errorlevel 5  -> *** FAX SENT SUCCESSFULLY ***
  697.               errorlevel 1  -> generic fax send failure
  698.               no errorlevel -> keypress abort, unknown failure type
  699.  
  700.          TOP OF PAGE HEADERS
  701.          ===================
  702.          BGFAX will print a top of page header at the top of each page
  703.          BGFAX sends out.  This is same time of things that real fax
  704.          machines and other computer fax software do that identify who sent
  705.          the fax, where it's going, the date and time, and the page number.
  706.  
  707.          BGFAX will need to call MAKEFAX.EXE with a special command line
  708.          parameter to cause the creation of the top of make banners.  Make
  709.          sure you keep both MAKEFAX.EXE and BGFAX.FNT in your BGFAX
  710.          environment directory.
  711.  
  712.          If you get lost real easy, you can skip the rest of this section.
  713.          This rest of this section describes how to configure BGFAX to
  714.          change the format of the top of page banners.
  715.  
  716.          BGFAX lets you be very flexible with what exactly is said on the
  717.          top of page headers.  It does this by the use of a "template" that
  718.          is located in the BGFAX.CNF file.  This is necessary so that
  719.          countries that do not use English can put their own language on
  720.          the top of page banners.  Also, it's just plain fun.
  721.  
  722. fh=To: %to21% From: %fr42% %mo2%/%dy2%/%yr2%  %hr2%:%mi2%  Pg %pg2%/%mp2%
  723. fr=B.J. Guillot (713-893-9124)
  724.  
  725.          The fh= entry is the template.
  726.  
  727.          It should be obvious as to what all those %TTNN% things do,
  728.          but if not, here's a little dictionary:
  729.  
  730.    %toNN% -> who the fax is for (will default to the sending phone number,
  731.      but can override to say any text with the /TO= command line switch)
  732.    %frNN% -> who the fax if from (will default to the ID= entry in the
  733.      BGFAX.CNF file, unless a FR= entry is found, but can override to say
  734.      any text with the /FR= command line switch)
  735.    %moNN% -> month
  736.    %dyNN% -> year
  737.    %hrNN% -> hour
  738.    %miNN% -> minute
  739.    %pgNN% -> current page number
  740.    %mpNN% -> maximum number of pages
  741.  
  742.    With %to and %fr, BGFAX will right pad the whoto or whofrom strings to
  743.    a total number of NN characters with blanks.  All other fields, are
  744.    left padded to NN characters with ZEROS.  Keep in mind that BGFAX can
  745.    fit 100 characters across the page.
  746.  
  747.          The fr= option, is used in the fh= template entry.  Basically,
  748.          fr= is what will be inserted into the %frNN% template variable.
  749.  
  750.          Are you lost?  Here is an example and what it would look like:
  751.  
  752.           C:\> bgfax /send output.fax 555-1212
  753.  
  754. To: 555-1212              From: B.J. Guillot (713-893-9124)                05/08/94  16:25  Pg 01/15
  755.  
  756.          Let's say you run a BBS with a fax door and want to stick you
  757.          user's name at the top of each page instead of your personal name.
  758.          No need to rebuild a BGFAX.CNF!  You can manipulate the %toNN% and
  759.          %frNN% template variables from the command line.  If you do this,
  760.          remember to use underscores (_) to indicate spaces.  Example:
  761.  
  762. C:\> bgfax /send output.fax 555-1212 /fr=BGFAX_Tech_Support /to=John_Doe
  763.  
  764. To: John Doe              From: BGFAX Tech Support                         05/08/94  16:25  Pg 01/15
  765.  
  766.          LIMITING MAXIMUM /SEND SPEED
  767.          ============================
  768.  
  769. /SEND:nnnn Some fax machines and fax modems don't operate very well together
  770.            at 14400 speeds.  You can force BGFAX to use a lower maximum speed
  771.            by putting the BPS rate after the send command, e.g.:
  772.  
  773.               bgfax /send:9600 fax0001.fax 893-9124 /c1
  774.               bgfax /send:7200 fax0001.fax 893-9124
  775.               bgfax /send:12000 fax0001.fax 1-713-893-9124
  776.  
  777.  
  778.          FAXOUT.LOG
  779.          ==========
  780.  
  781.          A FAXOUT.LOG file is created when sending out faxes to indicate
  782.          the success or failure.  Here is an example:
  783.  
  784. Date  Time  ET    Bytes   Rate  Filename     Phone Number         Pgs  Notes
  785. -------------------------------------------------------------------------------
  786. 03-22 13:18 00:25    3882 14400 RESPOND.FAX  8939124                2  Finished
  787. 03-22 13:18 00:11    3884 NOFAX RESPOND.FAX  8939124                0  Busy
  788. 03-22 13:19 00:11    3884 NOFAX RESPOND.FAX  8939124                0  No Fcon
  789. 03-22 13:30 00:31    3208  7200 RESPOND.FAX  8939124                0  Bad Conn
  790. 03-22 13:31 00:28    3882  9600 RESPOND.FAX  8939124                2  Finished
  791. 03-23 14:42 00:26    3882 14400 RESPOND.FAX  8939124                1  Timeout
  792. 03-23 14:44 00:29    3882 NOFAX RESPOND.FAX  8939124                0  BlackLst
  793. 03-23 14:47 00:21    3882 NOFAX RESPOND.FAX  8939124                0  Max Busy
  794. 03-23 14:51 00:23    3882 14400 RESPOND.FAX  8939124                1  Gen Fail
  795. 03-23 14:54 00:05    3882 NOFAX RESPOND.FAX  8939124                0  No Dial
  796.  
  797.          -------------------------------------------------------------
  798.          HANGUP STATUS CODES
  799.          -------------------------------------------------------------
  800.  
  801.          When BGFAX reports "Problematic fax reception", it will indicate a
  802.          fax hangup code, such as [+FHNG: 73].  This chart, taken from the
  803.          Supra CLASS_2.TXT fax command set documentation (which, I believe
  804.          was taken from the Rockwell Class 2 documentation), allows you to
  805.          match up the +FHNG message with its true meaning.  For example,
  806.          +FHNG: 73 would indicate "T.30 T2 timeout, expected page not
  807.          received", which really does not say much, but it may give you
  808.          some clue.  I don't know what most of these mean myself, so I
  809.          don't know whether it will provide you any luck or not, but, many
  810.          people asked that it be included, so here it is.
  811.  
  812.      /-----------------------------------------------------------------\
  813.      | 2.0   Class 2 |  Cause Description                              |
  814.      | --------------|-------------------------------------------------|
  815.      | 00-0F     0-9 |  CALL PLACEMENT AND TERMINATION                 |
  816.      |---------------|-------------------------------------------------|
  817.      | 00          0 |  Normal and proper end of connection            |
  818.      | 01          1 |  Ring Detect without successful handshake       |
  819.      | 02          2 |  Call aborted, from +FK/+FKS or <CAN>           |
  820.      | 03          3 |  No Loop Current                                |
  821.      | 04      4,n/a |  Ringback detected, no answer (timeout)         |
  822.      | 05        n/a |  Ringback detected, answer without CED          |
  823.      |---------------|-------------------------------------------------|
  824.      | 10-1F   10-19 |  TRANSMIT PHASE A & MISCELLANEOUS ERRORS        |
  825.      |---------------|-------------------------------------------------|
  826.      | 10         10 |  Unspecified Phase A error                      |
  827.      | 11         11 |  No Answer (T.30 T1 timeout)                    |
  828.      |---------------|-------------------------------------------------|
  829.      | 20-3F   20-39 |  TRANSMIT PHASE B HANGUP CODES                  |
  830.      |---------------|-------------------------------------------------|
  831.      | 20         20 |  Unspecified Transmit Phase B error             |
  832.      | 21         21 |  Remote cannot receive or send                  |
  833.      | 22         22 |  COMREC error in transmit Phase B               |
  834.      | 23         23 |  COMREC invalid command received                |
  835.      | 24         24 |  RSPEC error                                    |
  836.      | 25         25 |  DCS sent three times without response          |
  837.      | 26         26 |  DIS/DTC received 3 times; DCS not recognized   |
  838.      | 27         27 |  Failure to train at 2400 bps or +FMS/          |
  839.      |               |                                  +FMINSP value  |
  840.      | 28         28 |  RSPREC invalid response received               |
  841.      |---------------|-------------------------------------------------|
  842.      | 40-4F   40-49 |  TRANSMIT PHASE C HANGUP CODES                  |
  843.      |---------------|-------------------------------------------------|
  844.      | 40         40 |  Unspecified Transmit Phase C error             |
  845.      | 41        n/a |  Unspecified Image format error                 |
  846.      | 42        n/a |  Image conversion error                         |
  847.      | 43         43 |  DTE to DCE data underflow                      |
  848.      | 44        n/a |  Unrecognized Transparent data command          |
  849.      | 45        n/a |  Image error, line length wrong                 |
  850.      | 46        n/a |  Image error, page length wrong                 |
  851.      | 47        n/a |  Image error, wrong compression code            |
  852.      |---------------|-------------------------------------------------|
  853.      | 50-6F   50-69 |  TRANSMIT PHASE D HANGUP CODES                  |
  854.      |---------------|-------------------------------------------------|
  855.      | 50         50 |  Unspecified Transmit Phase D error             |
  856.      | 51         51 |  RSPREC error                                   |
  857.      | 52         52 |  No response to MPS repeated 3 times            |
  858.      | 53         53 |  Invalid response to MPS                        |
  859.      | 54         54 |  No response to EOP repeated 3 times            |
  860.      | 55         55 |  Invalid response to EOP                        |
  861.      | 56         56 |  No response to EOM repeated 3 times            |
  862.      | 57         57 |  Invalid response to EOM                        |
  863.      | 58         58 |  Unable to continue after PIN or PIP            |
  864.      |---------------|-------------------------------------------------|
  865.      | 70-8F   70-89 |  RECEIVE PHASE B HANGUP CODES                   |
  866.      |---------------|-------------------------------------------------|
  867.      | 70         70 |  Unspecified Receive Phase B error              |
  868.      | 71         71 |  RSPREC error   (before TCF??)                  |
  869.      | 72         72 |  COMREC error   (after TCF??)                   |
  870.      | 73         73 |  T.30 T2 timeout, expected page not received    |
  871.      | 74         74 |  T.30 T1 timeout after EOM received             |
  872.      |---------------|-------------------------------------------------|
  873.      | 90-9F   90-99 |  RECEIVE PHASE C HANGUP CODES                   |
  874.      |---------------|-------------------------------------------------|
  875.      | 90         90 |  Unspecified Receive Phase C error              |
  876.      | 91         91 |  Missing EOL after 5 seconds                    |
  877.      | n/a        92 |  < Not assigned >           /--- Rockwell only  |
  878.      | 92 -Note-> 94 |  Bad CRC or frame (ECM {or BFT} modes)          |
  879.      | 93         93 |  DCE to DTE buffer overflow                     |
  880.      |---------------|-------------------------------------------------|
  881.      | A0-BF 100-119 |  RECEIVE PHASE D HANGUP CODES                   |
  882.      |---------------|-------------------------------------------------|
  883.      | A0        100 |  Unspecified Receive Phase D errors             |
  884.      | A1        101 |  RSPREC invalid response received               |
  885.      | A2        102 |  COMREC invalid response received               |
  886.      | A3        103 |  Unable to continue after PIN or PIP            |
  887.      |---------------|-------------------------------------------------|
  888.      | C0-DF     n/a |  RESERVED FOR FUTURE STANDARDIZATION            |
  889.      | E0-FF     n/a |  RESERVED FOR MANUFACTURER SPECIFIC USE         |
  890.      | n/a   120-255 |  RESERVED CODES                                 |
  891.      \-----------------------------------------------------------------/
  892.  
  893.          -------------------------------------------------------------
  894.          LIST OF ALL COMMAND LINE PARAMETERS, SHORT DESCRIPTIONS
  895.          ------------------------------------------------------------
  896.  
  897.          "REAR" refers to BGFAX's rear-end mode, usually when a BBS
  898.          or Fido mailer answers the phone, and then passes control to
  899.          BGFAX when the port is still hot.  This refers to /FAX, /FAST,
  900.          /FCO, /FHAY and /FZYX modes.
  901.  
  902.          Valid in /HOST, /SEND, and "REAR"
  903.          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  904.          /50       Tell BGFAX (DOS version only) to use 50 line text mode
  905.  
  906.          /ED       Tells BGFAX to use "European Date" format.  DD-MM-YY.
  907.  
  908.          /NL       No Log--tells BGFAX not to use a BGFAX.LOG file at all.
  909.  
  910.          /SD       Skip Debug--tells BGFAX to make smaller LOG files by
  911.                    skipping all debugging information.
  912.  
  913.          /MO       Monochrome display mode, for palmtop computers
  914.  
  915.          /PID:nnn  Example... /PID:34 will make all log files named
  916.                    BGFAX34.LOG to keep from having trouble on multi-node
  917.                    systems.
  918.  
  919.          Valid in "REAR" mode only
  920.          ~~~~~~~~~~~~~~~~~~~~~~~~~
  921.          /DTE:nnnnn If BGFAX has trouble determining the DTE speed when
  922.                    used in rear-end mode (sometimes happens on FOSSIL
  923.                    based systems), you can tell BGFAX what DTE speed the
  924.                    port is set to.  Example...
  925.                    BGFAX /FAX C:\BGFAX 1 Z /DTE:57600
  926.                    People using BGFAX/DOS in a dos session of Windows 3.11,
  927.                    Windows 95, and OS/2 may need to use this.
  928.  
  929.  
  930.          Valid in both "REAR" and /HOST modes
  931.          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  932.          /NS       Eliminates the sound that BGFAX plays after successfully
  933.                    receiving a fax.  Registered version only.
  934.  
  935.          /NF       Make "FAX" appear on screen after fax received, must be
  936.                    have the NFAX.COM TSR loaded.  Use only on 286 machines
  937.                    and higher.  Do not use under OS/2.
  938.  
  939.          /DIS:nnn  Useful for limiting/changing the fax capabilities on
  940.                    a Class 1 modem.  Discussed in detail in another part
  941.                    of the documentation.
  942.  
  943.          /EX       If you are using an EXAR based fax modem, BGFAX will
  944.                    not perform DLE escapes so that you can get a readable
  945.                    fax image when receiving.  DO NOT USE THIS COMMAND ON
  946.                    A ROCKWELL OR OTHER TYPE OF FAX MODEM.  Most people
  947.                    in the United States will never need this parameter.
  948.                    A few people in other countries might need to use it.
  949.  
  950.  
  951.          Valid only in /HOST mode
  952.          ~~~~~~~~~~~~~~~~~~~~~~~~
  953.          /HOST     can also be used as /HOST:nn mode where nn is the number
  954.                    of minutes of idle time in which BGFAX will exit with an
  955.                    errorlevel 6.  /HOST alone will not exit when idle.
  956.  
  957.          /NH       No Hop.  In /HOST mode, BGFAX will normally do a
  958.                    "screen saving" hop.  This takes less CPU resources.
  959.  
  960.          /ATO      In /HOST mode, use this parameter if you are using
  961.                    some very old modems in Class 1 mode (some old 2400/9600
  962.                    modems, as well as the newer USR modems).
  963.  
  964.          /300      Tells BGFAX's /HOST mode to allow 300 bps callers.
  965.                    Only use this on a Class 2, 2.0, or ZyXEL modem.
  966.                    Class 1 (when adaptive answering is disabled) uses
  967.                    a string of "CONNECT" to represent a fax connect,
  968.                    which is the same as a 300 BPS data caller.
  969.  
  970.          /SB       In /HOST mode for the OS/2 version of BGFAX, it causes
  971.                    BGFAX/2 to _spawn_ the DOBBS.CMD file so that BBS
  972.                    software such as Maximus/2 can be used successfully.
  973.                    This switch is meaningless to the DOS version.
  974.  
  975.          /ME       In /HOST mode, if you make BGFAX ask the user to hit
  976.                    <Escape> to load the BBS, normally, if nothing
  977.                    happens in ten seconds or so, BGFAX times out and
  978.                    loads the BBS anyway.  /ME stands for Must hit Escape
  979.                    to actually load the BBS.  If the user does not,
  980.                    BGFAX will hang up on them instead of loading the
  981.                    BBS.  Can be used to keep people that don't have
  982.                    <Esc> keys on their keyboard off your BBS.
  983.  
  984.          /ND       In /HOST mode, BGFAX will send a message to any human
  985.                    (data) callers telling them the BBS is not currently
  986.                    accepting modem callers.  You should never really need
  987.                    to use this.
  988.  
  989.  
  990.          Valid only in /SEND mode
  991.          ~~~~~~~~~~~~~~~~~~~~~~~~
  992.          /SEND     can also be used as /SEND:nnnnn where nnnnn is the maximum
  993.                    fax transmit speed, e.g., /SEND:9600
  994.  
  995.          BGFAX /SEND:9600 output.fax 555-1212
  996.  
  997.          In send mode, parameter #2 (output.fax) is the name of the fax
  998.          file that is being sent.  Parameter #3 is the phone number.  The
  999.          following switches must come after parameter #3, e.g.,
  1000.  
  1001.          BGFAX /SEND:9600 output.fax 555-1212 /ER
  1002.  
  1003.          /ER       Extended Results send mode.  Discussed earlier.
  1004.  
  1005.          /HW       Tells BGFAX to use hardware flow control (CTS) when
  1006.                    sending faxes.  See WHATS.NEW for more info.  Applies
  1007.                    only to the DOS version of BGFAX.
  1008.  
  1009.          /NB       Do not create top of page banners when sending faxes.
  1010.  
  1011.          /C1       Forces BGFAX to use Class 1 mode when sending.
  1012.  
  1013.          /C2       Forces BGFAX to use Class 2 mode when sending.
  1014.  
  1015.          /NM       Forces BGFAX to use Numeric Mode when sending in Class 1
  1016.                    mode.  May be required on some modems like the I-Modem.
  1017.                    Numeric mode being "ATEQV".
  1018.  
  1019.          /FR:xxxx  Overrides the FR= field in BGFAX.CNF when sending
  1020.                    faxes.  This text goes in the "From:" field in the
  1021.                    top of page banner.  Use underscores instead of
  1022.                    spaces.  Example... /FR:BGFAX_Tech_Support
  1023.  
  1024.          /TO:xxxx  Stuffs the "%toNN%" field template.  Use underscores
  1025.                    instead of spaces.
  1026.  
  1027.          /SL:nn    Add nn extra scan lines to the top of each page sent.
  1028.                    "nn" is given in SCAN LINES not text lines.  16 scan
  1029.                    lines is about equal to one line of text.
  1030.  
  1031.       /CI:xxxxx Check ID of remote machine before we /SEND the document.
  1032.                 Example: BGFAX /SEND file.fax 8939124 /ci:3_9124
  1033.                 BGFAX will dial the remote fax machine, and make sure
  1034.                 that a "3 9124" appears somewhere in the remote fax ID.
  1035.                 Note that underscores (_) are used to represent spaces.
  1036.                 If /ER mode is active, if the Check ID fails, BGFAX /SEND
  1037.                 will exit with errorlevel 18.  If no /ER, if it fails, it
  1038.                 will exit the standard error exit errorlevel 1.  How is this
  1039.                 useful?  Well, say someone gets call forwarding on their fax
  1040.                 line, and they have to forward their number to an alternate
  1041.                 fax machine for a week while their fax machine is repaired.
  1042.                 The remote fax machine is probably programmed with an
  1043.                 alternate remote ID, and BGFAX /SEND will abort when it
  1044.                 realized the remote ID does not match what it should, in
  1045.                 the case that you need to send very confidential documents.
  1046.  
  1047.          Speciality Modes
  1048.          ~~~~~~~~~~~~~~~~
  1049.          The following mode is only needed in very special cases, and
  1050.          the average user should have no use for it.
  1051.  
  1052.          /RING     Used instead of /HOST, except that BGFAX will immediately
  1053.                    send the answer string (an= in BGFAX.CNF) to the modem
  1054.                    after BGFAX finishes initializing the modem.
  1055.      
  1056.  
  1057.          Undocumented
  1058.          ~~~~~~~~~~~~
  1059.          /HB       For internal testing purposes only, /SEND
  1060.          /XB       For internal testing purposes only, /SEND
  1061.          /SMD      For internal testing purposes only, /SEND
  1062.  
  1063.          -------------------------------------------------------------
  1064.          ACKNOWLEDGEMENTS
  1065.          -------------------------------------------------------------
  1066.  
  1067.          I would like to thank the following people for their assistance
  1068.          during the initial alpha and beta test phase.
  1069.  
  1070.          Bill Huther
  1071.          Brian Wood
  1072.          Russell Kroll
  1073.          Ethan Brofman
  1074.          Ed Lucas
  1075.  
  1076.          I also think the many people from the Internet and FidoNet that
  1077.          help out with the on-going public beta program.
  1078.  
  1079.          US Robotics, Hayes and Supra have also been very helpful in
  1080.          getting BGFAX to work/work better with their modems.
  1081.  
  1082.          -------------------------------------------------------------
  1083.          SHAREWARE
  1084.          -------------------------------------------------------------
  1085.  
  1086.          THIS PROGRAM IS SHAREWARE.
  1087.  
  1088.          If you use this program for more than four weeks you are required
  1089.          to register it for its low cost of only $25 US DOLLARS.
  1090.  
  1091.          Please make sure BGFAX works for you BEFORE registering.  If you
  1092.          have a question or problem, I'll answer it (or say I don't know
  1093.          the answer) whether you have registered or not.  I receive so much
  1094.          mail that it sometimes takes me up to two months to reply to your
  1095.          question.  Again, this is whether you are registered or not.
  1096.          Voice contact is the only way you will be able to get prompt reply.
  1097.  
  1098.          Registrations encourage frequent updates.
  1099.  
  1100.          If you are paying by check or money order, please print out the
  1101.          REGISTER.FRM file, fill it out, and mail it to my address.  Please
  1102.          try your best to make sure checks are drawn on a US bank.
  1103.  
  1104.          If you are paying by credit card (Visa, Mastercard, Discover or
  1105.          American Express) you can (1) mail the form to me, (2) fax the
  1106.          form to me, (3) netmail the form to me, or (4) call my BBS and
  1107.          open door #6 and quickly register.
  1108.  
  1109.          You can also register with Authur Mol in the Netherlands.  (See
  1110.          the REGISTER.NL file for more info.  I hope you read Dutch.)
  1111.  
  1112.          Hamish Moffatt is the registration agent for Australia.  (See
  1113.          the REGISTER.AUS file for more info.  This one is in English.)
  1114.  
  1115.          -------------------------------------------------------------
  1116.  
  1117.          Regards,
  1118.          B.J. Guillot
  1119.  
  1120.          "Don't take a vacation while basting your Rick Roger's turkey."
  1121.                                  -- Yan Can Cook, PBS television network
  1122.  
  1123.